package com.google.array01;

import java.lang.reflect.Array;
import java.util.*;
import java.util.Random;
;

/**
 * @author Mucd
 * @Date 2020/12/7/007
 * @ClassName Test
 */
public class Test {
    public static void main(String[] args) {

        //创建数组
        int[][] arr = {{123, 2323, 213}, {12312, 23, 12, 312, 3}};

        int[] arr2 = new int[3];
        arr2[0] = 100;
        arr2[1] = 200;
        arr2[2] = 300;



        //用for each 循环遍历
        for (int j : arr2){
            System.out.println(j);
        }



/*        for (int[] array: arr ) {
            System.out.println(Arrays.toString(array));
        }*/

    /*
    for (int i = 0; i < arrRandom.length; i++) {
            System.out.println(arrRandom[i]);
    }*/

/*        System.out.println(arr[0][1]);

        for (int[] array : arr) {
            System.out.println(Arrays.toString(array));
        }*/
    }
}
